﻿using UnityEngine;
using UnityEngine.UI;

namespace UI
{
    public class UISettingsInfo : ScriptableObject
    {

        [SerializeField]
        private string[] _uiLayerNames = new string[]
        {
            "[BOTTOM]",
            "[DEFAULT]",
            "[SYSTEM]",
            "[TOPMOST]",
        };

        [SerializeField]
        private Vector2Int _pixelSize = new Vector2Int(1920, 1080);

        [SerializeField]
        private string _uiFormRootPath;

        [SerializeField]
        private UIFormInfo _defaultFormInfo = new UIFormInfo { Layer = 1, AutoToTop = false };

        /// <summary>
        /// 层名称
        /// </summary>
        public string[] UILayerNames
        {
            get { return _uiLayerNames; }
        }

        /// <summary>
        /// UI全局分辨率
        /// </summary>
        public Vector2Int PixelSize { get { return _pixelSize; } }

        /// <summary>
        /// 窗口加载根目录
        /// </summary>
        public string UIFormRootPath
        {
            get { return _uiFormRootPath; }
        }

        /// <summary>
        /// 默认窗体信息
        /// </summary>
        public UIFormInfo DefaultFormInfo { get { return _defaultFormInfo; } }

    }
}
